#pragma once
#include "..\synchronization\CriticalSection.h"
class memory_pool ;
class sync_memory_pool
{
public:
	sync_memory_pool(size_t cont);
public:
	virtual ~sync_memory_pool(void);

	void* m_malloc(size_t mem_size) ;
	void  m_free(void *mem_ptr) ;
private:
	memory_pool * mem_pool_impl;
	CCriticalSection    m_poCriSectionMemPoll;
};
